package main

import (
	"227zk/common/grpc"
	"227zk/common/models/mysql"
	"227zk/common/models/redis"
	"227zk/common/nacos"
	"227zk/service/config"
	grpc2 "google.golang.org/grpc"
	"google.golang.org/grpc/channelz/service"
)

func main() {
	config.Init()
	mysql.MysqlInit()
	redis.ExampleClient()
	nacos.NewNaCos()
	nac := nacos.Config
	grpc.RegisterGrpc(nac.Grpc.Host, nac.Grpc.Port, func(server *grpc2.Server) {
		service.RegisterChannelzServiceToServer(server)
	})
}
